﻿using System;
using System.Collections.Generic;

namespace PVTLibrary
{
    [Serializable]
    public class Fase
    {
        public Dictionary<string ,Substancia> Componentes ;
        public SinglePhaseMixtureProperties SPMProperties = new SinglePhaseMixtureProperties();
        public TwoPhaseMixtureProperties    TPMProperties = new TwoPhaseMixtureProperties();


        protected string _componentDescription ;
        protected string _componentName ;

        /// <summary>
        /// 
        /// </summary>
        public string Descricao
        {
            get { return _componentDescription; }
            set { _componentDescription = value; }
        }


        /// <summary>
        /// 
        /// </summary>
        public string Nome
        {
            get { return _componentName; }
            set { _componentName = value; }
        }


        public Fase(string nome , string descricao)
        {
            _componentName = nome;
            _componentDescription = descricao;
            Componentes = new Dictionary<string, Substancia>();
        }

        public Fase(string nome , string descricao, Dictionary<string, Substancia> substancias)
        {
            _componentName = nome;
            _componentDescription = descricao;
            Componentes = substancias;
        }
    }
}